<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        .box{
            margin: auto;
            position: relative;
            overflow: hidden;
        }
        ul{
            list-style: none;
            padding: 0;
            margin: 0;
        }
        li{
          float: left;
            width: 100px;
            height: 50px;
            background-color: #ffaaaa;
            line-height: 50px;
            font-size: 20px;
            text-align: center;
            cursor: pointer;

        }
        .box1{
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100px;
            height: 5px;
            background-color: green;
            transition: all .5s;
        }
    </style>
    <script src="jquery-1.11.1.min.js"></script>
</head>
<body>
    <div class="box">
        <ul>
            <li>one</li>
            <li>two</li>
            <li>three</li>
        </ul>
        <div class="box1"></div>
    </div>
    <script>
        $(".box li").eq(0).on("click",function(){
            $(".box1").css({left:"0"});
        });
        $(".box li").eq(1).on("click",function(){
            $(".box1").css({left:"+100px"});
        });
        $(".box li").eq(2).on("click",function(){
            $(".box1").css({left:"+200px"});
        });
    </script>
</body>
</html>